package 曾世昌12_8.zuoye24;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.util.HashMap;
import java.util.List;

public class test {
    public static void main(String[] args) throws Exception {
        List<String> strings = FileUtils.readLines( new File( "E:\\untitled5\\mapdata.properties" ) );
        HashMap<String, String> Map = new HashMap<>();
        for (int i = 0; i < strings.size(); i++) {
            String[] split = strings.get( i ).split( "=" );
            for (int i1 = 0; i1 < split.length; i1++) {
                Map.put( split[0],split[1] );
            }
        }
        System.out.println(Map.toString());
    }
}
